package com.ruoyi.warning.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.warning.domain.entity.WarningConfigurationRuleRelation;
import com.ruoyi.warning.domain.vo.WarningConfigurationRuleRelationVO;
import com.ruoyi.warning.mapper.WarningConfigurationRuleRelationMapper;
import com.ruoyi.warning.service.IWarningConfigurationRuleRelationService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 告警配置与规则关系表 服务实现类
 * </p>
 *
 * @author chenhc
 * @since 2025-04-29
 */
@Service
public class WarningConfigurationRuleRelationServiceImpl extends ServiceImpl<WarningConfigurationRuleRelationMapper, WarningConfigurationRuleRelation> implements IWarningConfigurationRuleRelationService {

    @Resource
    private WarningConfigurationRuleRelationMapper warningConfigurationRuleRelationMapper;
    @Override
    public List<WarningConfigurationRuleRelationVO> getRuleRelationList(String configurationId) {

        return warningConfigurationRuleRelationMapper.getRuleRelationList(configurationId);
    }
}
